import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import plugins from './util/plugins'

// rem适配
import 'lib-flexible'
// 移除移动端点击延迟
import FastClick from 'fastclick'
FastClick.attach(document.body)
// 刷新组件
import VueScroller from 'vue-scroller'
Vue.use(VueScroller)
Vue.config.productionTip = false

import Router from 'vue-router'
const routerPush = Router.prototype.push
Vue.prototype.$pub = plugins;
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error=> error)
}
import moment from 'moment'
Vue.use(moment)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')//手动挂载
